package cn.liuxiany.alibaba.provider.controller;

import cn.liuxiany.alibaba.provider.entity.AccountEntity;
import cn.liuxiany.alibaba.provider.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author liuxiany
 * @since 2023-10-18
 */
@RestController
@RequestMapping("/account/")
public class AccountController {

    @Autowired
    private IAccountService accountService;

    @PostMapping("test/add")
    public void testAdd(@RequestBody AccountEntity account) {
        accountService.addAccount(account);
    }
}
